<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

	<!-- Used to get resourceUrl for inclusion in resource URLs below -->
	<spring:eval expression="@applicationProps['application.version']" var="applicationVersion"/>
	<spring:url value="/resources-{applicationVersion}" var="resourceUrl">
    	<spring:param name="applicationVersion" value="${applicationVersion}"/>
	</spring:url>

	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="${resourceUrl}/content/layout.css" media="all" />

	<title>Goon me up</title>
</head>
<body>
	<spring:url value="/WEB-INF/views/goon/list.jsp" var="listPageUrl" />
	
	<input type="hidden" value="<spring:url value="/goon/getList" ></spring:url>" name="getListURL" />
	<input type="hidden" value="<spring:url value="/goon/edit" ></spring:url>" name="saveURL" />

	<div class="section-container">
		<input type="hidden" value="<spring:url value="/goon/getList" ></spring:url>" id="listGetURL" />
		<div class="inner-section" id="listContainer">
			<%-- 
			<c:set var="goonList" value="${model.goonList}" scope="request" />
			<jsp:include page="/WEB-INF/views/goon/list.jsp" />
			--%>
		</div>
	</div>

	<%-- <jsp:include page="${listPageUrl}" /> --%>
			<%-- <jsp:param value="${model.goonList}" name="goonList"/> --%>
	
	<div class="section-container">
		<div class="inner-section" id="detailsContainer">
		</div>
	</div>
	
	<div class="section-container">
		<div class="inner-section">
			<jsp:include page="/WEB-INF/views/goon/edit.jsp" />
		</div>
	</div>
		
	<script type="application/javascript" src="${resourceUrl}/scripts/jquery-1.8.2.js"></script>
	<script type="application/javascript" src="${resourceUrl}/scripts/goon.js"></script>
	<script type="application/javascript" src="${resourceUrl}/scripts/utils.js"></script>
</body>
</html>